package com.chee.plant.hibernate.object;

import java.util.Calendar;

import com.chee.plant.hibernate.object.base.BaseBattle;

public class Battle extends BaseBattle {
	private static final long serialVersionUID = 1L;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public Battle() {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Battle(java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public Battle(java.lang.Integer id, java.lang.Integer fieldId,
			java.util.Date startTime, java.util.Date endTime) {

		super(id, fieldId, startTime, endTime);
	}

	/* [CONSTRUCTOR MARKER END] */
	public void setDefaults() {
		this.setId(0);
		this.setStartTime(Calendar.getInstance().getTime());
		this.setEndTime(Calendar.getInstance().getTime());
		this.setFieldId(0);

	}

}